﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace JkUtils.JKTypes
{
    public enum HttpMode
    {
        HTTP,
        HTTPS
    }

    public enum HttpMethodType
    {
        GET,
        POST,
        PUT,
        DELETE,
        HEAD,
        OPTIONS,
        TRACE,
        CONNECT
    }

    public class ProxySetting
    {
        // 是否使用代理
        public bool UseProxy { get; set; }

        // 代理协议
        public string Protocol { get; set; }

        // 代理地址
        public string Address { get; set; }

        // 端口
        public string Port { get; set; }

        // 身份信息
        public ProxyCredentials ProxyCredentials { get; set; }
    }

    public class ProxyCredentials
    {
        public string UserName { get; set; }
        public string Password { get; set; }
    }

    public enum CompressionType
    {
        None,
        GZip,
        BZip2,
        PPMd,
        Deflate,
        Rar,
        LZMA,
        BCJ,
        BCJ2,
        LZip,
        Xz,
        Unknown,
        Deflate64,
        Shrink,
        Lzw,
        Reduce1,
        Reduce2,
        Reduce3,
        Reduce4,
        Explode,
    }
}
